import request from '@/utils/request'

// 查询中医特征列表
export function listCharacteristics(query) {
    return request({
        url: '/medical/characteristics/list',
        method: 'get',
        params: query
    })
}

// 查询中医特征详细
export function getCharacteristics(id) {
    return request({
        url: '/medical/characteristics/' + id,
        method: 'get'
    })
}

// 新增中医特征
export function addCharacteristics(data) {
    return request({
        url: '/medical/characteristics',
        method: 'post',
        data: data
    })
}

// 修改中医特征
export function updateCharacteristics(data) {
    return request({
        url: '/medical/characteristics',
        method: 'put',
        data: data
    })
}

// 删除中医特征
export function delCharacteristics(id) {
    return request({
        url: '/medical/characteristics/' + id,
        method: 'delete'
    })
}

export function characteristicsList() {
    return request({
        url: '/medical/characteristics/characteristicsList',
        method: 'get'
    })
}
